//import javax.microedition.lcdui.*;
//import javax.microedition.midlet.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Canvas;
import javax.microedition.lcdui.StringItem;

public class ULj2me extends JULMIDlet
{
//	private Command cmQuit,cmMyCmd1,cmMyCmd2;
	
	private JSmplWorkSpace m_WorkSpace;
	
	public ULj2me()
	{
		super();
//		cmQuit=new Command("Exit",Command.EXIT,1);
//		cmMyCmd1=new Command("Cmd1",Command.SCREEN,1);
//		cmMyCmd2=new Command("Cmd2",Command.SCREEN,1);

		m_WorkSpace=new JSmplWorkSpace();
/*		m_Frame.addCommand(cmQuit);
		m_Frame.addCommand(cmMyCmd1);
		m_Frame.addCommand(cmMyCmd2);
		m_Frame.setCommandListener(this);
*/		
	}

	public void startApp()
	{
		Display.getDisplay(this).setCurrent(m_WorkSpace);
		m_WorkSpace.setFullScreenMode(true);
		m_WorkSpace.OnCreate();
	}

	public void pauseApp() 
	{
	}

	public void destroyApp( boolean unconditional ) 
	{
		m_WorkSpace.OnDestroy();
	}

	public void onCmd()
	{
		
	}

	public void commandAction( Command c, Displayable s ) 
	{
/*		if(c==cmMyCmd1)
			onCmd();
		if(c==cmMyCmd2)
			;
		if(c==cmQuit)
			notifyDestroyed();
*/	}
}

